﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entity.Framework;
using System.Data.Objects;

namespace Business.Operations
{
    public class HakemPerformansOperation
    {
        private static HPDMASEntities db = new HPDMASEntities();

        public HakemPerformansOperation()
        {

        }

        public static List<HakemPerformans> HakemPerformansGetAll()
        {
            var hakemPerformansListesi = db.HakemPerformans.ToList();
            return hakemPerformansListesi;
        }

        public static HakemPerformans HakemPerformansGetByHakemPerformansId(int hakemPerformansId)
        {
            var hakemPerformans = (from c in db.HakemPerformans where c.HakemPerformansID == hakemPerformansId select c).First();
            return hakemPerformans;
        }
    }
}
